#include"Udp_server.hpp"
int main(int argc, char* argv[])
{
    if(/*argc!= 3*/argc!= 2){
        std::cout<<"Usage: "<<argv[0]<<"[port]"<<std::endl;
        DIE(1);
    }
    // std::string ip = argv[1];
    // uint16_t port = std::stoi(argv[2]);
    uint16_t port = std::stoi(argv[1]);
    ENABLE_CONSOLE_LOG();
    std::unique_ptr<Udp_server> server = std::make_unique<Udp_server>(/*ip,*/ port);
    server->Init();
    server->Start();
    return 0;
}